package com.ruoyi.monitor.service;

import java.util.*;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.monitor.domain.PollutantAvg;

/**
 * 均值Service接口
 * 
 * @author xzx
 * @date 2023-01-12
 */
public interface IPolluantAvgService extends IService<PollutantAvg>
{

    PollutantAvg countAVGWeekLatest();

    PollutantAvg countAVGMonthLatest();
    //均值计算，日，周，月，年
    Set<PollutantAvg> CountAVGWeekAll();

    Set<PollutantAvg> CountAVGMonthAll();

    Set<PollutantAvg> CountAVGYearAll();

    PollutantAvg selectDaysAVG(Date date,Integer days);

    List<PollutantAvg> selectDaySingle(Date date,Integer days);

    Set<PollutantAvg> selectAVGByType(Integer type);

    List<PollutantAvg> selectAllByDay();

    TreeMap<String, HashMap<Integer, Integer>> daysOfQualities(Boolean thisYear);

    /**
     * 查询均值查询
     *
     * @param id 均值查询主键
     * @return 均值查询
     */
    public PollutantAvg selectPollutantAvgById(Long id);

    /**
     * 查询均值查询列表
     *
     * @param pollutantAvg 均值查询
     * @return 均值查询集合
     */
    public List<PollutantAvg> selectPollutantAvgList(PollutantAvg pollutantAvg);

    /**
     * 新增均值查询
     *
     * @param pollutantAvg 均值查询
     * @return 结果
     */
    public int insertPollutantAvg(PollutantAvg pollutantAvg);

    /**
     * 修改均值查询
     *
     * @param pollutantAvg 均值查询
     * @return 结果
     */
    public int updatePollutantAvg(PollutantAvg pollutantAvg);

    /**
     * 批量删除均值查询
     *
     * @param ids 需要删除的均值查询主键集合
     * @return 结果
     */
    public int deletePollutantAvgByIds(Long[] ids);

    /**
     * 删除均值查询信息
     *
     * @param id 均值查询主键
     * @return 结果
     */
    public int deletePollutantAvgById(Long id);




}
